import 'package:flutter/foundation.dart';

class WeatherInfo with ChangeNotifier{
  //温度单位
  String _tempType='Celcius';
  //温度值
  int _temperatureValue=25;

  String get tempType => _tempType;

  int get temperatureValue=>_temperatureValue;

  set temperatureType(String tempType){
    _tempType=tempType;
    notifyListeners();
  }

  set temperatureValue(int temperatureValue){
    _temperatureValue=temperatureValue;
    notifyListeners();
  }

}